HepMCdir             = /uscms_data/d2/timlou/HepMCFiles/HepMC-2.06.08/HepMC_new
HepMClib             = $(HepMCdir)/lib/libHepMC.a
HepMCfiolib          = $(HepMCdir)/lib/libHepMCfio.a


ROOTCXXFLAGS := $(DICTCXXFLAGS) $(shell root-config --cflags)
LDFLAGS1 := $(shell root-config --ldflags --glibs)

converter: converter.C
	@echo "Building $@ ..."
	$(CXX) $@.C $(HepMClib) $(HepMCfiolib) \
	$(ROOTCXXFLAGS) -I${HepMCdir}/include \
	$(LDFLAGS1) -L$(HepMCdir)/lib -lHepMC \
	        -o $@

ascii_converter: ascii_converter.C
	@echo "Building $@ ..."
	$(CXX) $@.C \
	$(ROOTCXXFLAGS) \
	$(LDFLAGS1) \
	        -o $@
